//
//  ArtTopicListCollectionViewCell.m
//  ArtOfLiving
//
//  Created by 王文晓 on 16/4/30.
//  Copyright © 2016年 刘虎. All rights reserved.
//

#import "ArtTopicListCollectionViewCell.h"
#import "ArtTopicListModel.h"

@interface ArtTopicListCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *backimageView;
@property (weak, nonatomic) IBOutlet UILabel *titlelabel;

@end


@implementation ArtTopicListCollectionViewCell


-(void)setCellWithModel:(ArtTopicListModel *)model{
    
    self.titlelabel.text = model.title;
    SDWebImageOptions options = SDWebImageRetryFailed | SDWebImageLowPriority;
    [self.backimageView sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:[UIImage imageNamed:@"artPlacehoder.png"] options:options];
    
}






- (void)awakeFromNib {
    // Initialization code
}

@end
